import request from '@/utils/request'

// 查询节假日设置列表
export function listSetting(year,month) {
  return request({
    url: `/system/holidaySettings/list/${year}/${month}`,
    method: 'get',
  })
}

// 查询节假日设置详细
export function getSetting(id) {
  return request({
    url: '/system/holidaySettings/' + id,
    method: 'get'
  })
}

// 新增、修改节假日设置
export function saveHolidayName(data) {
  return request({
    url: '/system/holidaySettings/saveHolidayName',
    method: 'post',
    data: data
  })
}

